# -*- coding: utf-8 -*-

import web
from urls import urls
import views

#web.webapi.internalerror = web.debugerror
app = web.application(urls, globals())

app.add_processor(web.loadhook(views.setheader))

if __name__ == "__main__":
    #web.httpserver.runsimple = web.httpserver.runbasic
    app.run()
